﻿// <copyright file="SourceItem.cs" company="Soumya Chattopadhyay">
// Copyright (c) 2010 All Right Reserved
// </copyright>
// <disclaimer> This software is intented for educational purposes only and not for 
// commerical or prodution use. The software is provided "as is", without warranty 
// of any kind, express or implied, including but not limited to the warranties of 
// merchantability, fitness for a particular purpose and noninfringement. In no event 
// shall the author(s) or copyright holder(s) be liable for any claim, damages or other 
// liability, whether in an action of contract, tort or otherwise, arising from, out of 
// or in connection with the software or the use or other dealings in the software.
// </disclaimer>
namespace My.CodePlex.TFSExplorer.TeamFoundation
{
    using System;
    using System.Collections.Generic;
    using System.Collections.ObjectModel;
    using System.Linq;
    using System.Text;
    using System.Windows.Media;

    /// <summary>
    /// Private inner class that represents the source
    /// </summary>
    public class SourceItem
    {
        /// <summary>
        /// Initializes a new instance of the SourceItem class
        /// </summary>
        public SourceItem()
        {
            this.Items = new ObservableCollection<SourceItem>();
        }

        /// <summary>
        /// Gets or sets the server item
        /// </summary>
        public string ServerItem { get; set; }

        /// <summary>
        /// Gets or sets the name of the source item
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the item id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets the checkin date for the file
        /// </summary>
        public string CheckinDate { get; set; }

        /// <summary>
        /// Gets or sets if the file is the latest version
        /// </summary>
        public string IsLatestVersion { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the item is a folder
        /// </summary>
        public bool IsFolder { get; set; }

        /// <summary>
        /// Gets or sets the changeset id
        /// </summary>
        public int ChangesetId { get; set; }

        /// <summary>
        /// Gets or sets the image source
        /// </summary>
        public ImageSource ImgSource { get; set; }

        /// <summary>
        /// Gets or sets the image Uri
        /// </summary>
        public Uri ImgUri { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the item is checked out
        /// </summary>
        public bool IsCheckedout { get; set; }

        /// <summary>
        /// Gets or sets the client
        /// </summary>
        public string Client { get; set; }

        /// <summary>
        /// Gets or sets the description
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets the collection of source items
        /// </summary>
        public ObservableCollection<SourceItem> Items { get; set; }

        /// <summary>
        /// Gets or sets the tag (any associated data can be used)
        /// </summary>
        public object Tag { get; set; }
    }
}
